Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
interface System.​Collections.​Generic.​IAlternateEqualityComparer<​TAlternate, T>
Assembly: System.Runtime
Implemented by an <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> to support comparing a <typeparamref name="TAlternate" /> instance with a <typeparamref name="T" /> instance.
Methods
bool
Equals​(TAlternate alternate,
T other)
Determines whether the specified <paramref name="alternate" /> equals the specified <paramref name="other" /> .
Returns <see langword="true" /> if the specified instances are equal; otherwise, <see langword="false" /> .
alternate
The instance of type <typeparamref name="TAlternate" /> to compare.
other
The instance of type <typeparamref name="T" /> to compare.
int
GetHashCode​(TAlternate alternate)
Returns a hash code for the specified alternate instance.
Returns A hash code for the specified instance.
alternate
The instance of type <typeparamref name="TAlternate" /> for which to get a hash code.
T
Create​(TAlternate alternate)
Creates a <typeparamref name="T" /> that is considered by <see cref="M:System.Collections.Generic.IAlternateEqualityComparer`2.Equals(`0,`1)" /> to be equal to the specified <paramref name="alternate" /> .
Returns A <typeparamref name="T" /> considered equal to the specified <paramref name="alternate" /> .
alternate
The instance of type <typeparamref name="TAlternate" /> for which an equal <typeparamref name="T" /> is required.